import request from '@/utils/request'

export function getProjectList(query) {
  return request({
    url: '/finance/project/getList',
    method: 'post',
    data: query
  })
}

export function getProjectUsableList(query) {
  return request({
    url: '/finance/project/getAvailable',
    method: 'post',
    data: query
  })
}

export function getProjectDetail(id) {
  return request({
    url: '/finance/project/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveProject(id) {
  return request({
    url: '/finance/project/save',
    method: 'post',
    data: id
  })
}

export function removeProjectByID(id) {
  return request({
    url: '/finance/project/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByProjectID(id) {
  return request({
    url: '/finance/project/change-status',
    method: 'post',
    data: id
  })
}

export function copyProjectByID(id){
  return request({
    url: '/finance/project/copy',
    method: 'post',
    data: id
  })
}

